<!-- Begin Sidebar Left -->
<?php echo $this->element('user/sidebar-left');?>
<!-- End Sidebar Left -->


<!-- Begin Content right -->
<div class="col-md-9 right">

	<!-- Begin Noi bac -->
	<?php if(!empty($prom_procuts)):?>
	<div class="panel panel-fix">
		<div class="panel-heading"> <h3 class="panel-title"><span class="glyphicon glyphicon-fire"></span> Sản phẩm nổi bật</h3> </div>
	</div>

	<div class="block-product clearfix">
		<?php foreach($prom_procuts as $p):?>
		<article class="item-product">
			<a href="<?= $this->webroot . $p[$als]['als'] .'-d' . $p[$als]['id'] . $ext?>">
				<div class="thumbnail">
					<img src="<?= PUBLIC_THUMB_SHOW . $p[$als]['thumb'] ?>" alt=""/>
					<div class="overlay">
						<p><span style="color: #00ff00;">Giảm giá: <?= $p[$als]['discounts'] ?>%</span></p>
					</div>
				</div>
				<div class="bottom-item">
					<h2 class="product-name"><?= $p[$als]['name'] ?></h2>
					<div class="product-price">Giá: <?= $p[$als]['price'] == 0 ? 'Liên hệ' : @number_format($p[$als]['price']).'đ' ?></div>
				</div>
			</a>
		</article>
		<?php endforeach; ?>
	</div>
	<?php endif; ?>
	<!-- End Noi bac -->

	<!-- Begin Mới -->
	<?php if(!empty($new_procuts)):?>
	<div class="panel panel-fix  mt20">
		<div class="panel-heading"> <h3 class="panel-title"><span class="glyphicon glyphicon-fire"></span> Sản phẩm mới</h3> </div>
	</div>

	<div class="block-product clearfix">
		<?php foreach($new_procuts as $p):?>
		<article class="item-product">
			<a href="<?= $this->webroot . $p[$als]['als'] .'-d' . $p[$als]['id'] . $ext?>">
				<div class="thumbnail">
					<img src="<?= PUBLIC_THUMB_SHOW . $p[$als]['thumb'] ?>" alt=""/>
					<div class="overlay">
						<p><span style="color: #00ff00;">Giảm giá: <?= $p[$als]['discounts'] ?>%</span></p>
					</div>
				</div>
				<div class="bottom-item">
					<h2 class="product-name"><?= $p[$als]['name'] ?></h2>
					<div class="product-price">Giá: <?= $p[$als]['price'] == 0 ? 'Liên hệ' : @number_format($p[$als]['price']).'đ' ?></div>
				</div>
			</a>
		</article>
		<?php endforeach; ?>
	</div>
	<?php endif; ?>
	<!-- End Mới -->

	<!-- Begin bán chạy -->
	<?php if(!empty($runprocuts)):?>
	<div class="panel panel-fix mt20">
		<div class="panel-heading"> <h3 class="panel-title"><span class="glyphicon glyphicon-fire"></span> Sản phẩm bán chạy</h3> </div>
	</div>

	<div class="block-product clearfix">
	<?php foreach($new_procuts as $p):?>
		<article class="item-product">
			<a href="<?= $this->webroot . $p[$als]['als'] .'-d' . $p[$als]['id'] . $ext?>">
				<div class="thumbnail">
					<img src="<?= PUBLIC_THUMB_SHOW . $p[$als]['thumb'] ?>" alt=""/>
					<div class="overlay">
						<p><span style="color: #00ff00;">Giảm giá: <?= $p[$als]['discounts'] ?>%</span></p>
					</div>
				</div>
				<div class="bottom-item">
					<h2 class="product-name"><?= $p[$als]['name'] ?></h2>
					<div class="product-price">Giá: <?= $p[$als]['price'] == 0 ? 'Liên hệ' : @number_format($p[$als]['price']).'đ' ?></div>
				</div>
			</a>
		</article>
		<?php endforeach; ?>
	</div>
	<?php endif; ?>
	<!-- End Noi bac -->

</div>
<!-- End Content right -->